linear and nonlinear system of equations